// 天气实况监测相关的请求
import request from '@/utils/request'



//实况统计数据

export const reqRealSituation = (county, pageNum, pageSize, isTravel) => request.get(`/weatherfacts/actualStatistics?county=${county}&pageNum=${pageNum}&pageSize=${pageSize}&isTravel=${isTravel}`)

// 分布图

// 雨量
export const reqRainLivePic = (county, transMinioUrl) => request.get(`/rainLivePic/getPic?county=${county}&transMinioUrl=${transMinioUrl}`)

// 雷达
export const reqRadarPic = () => request.get(`/weatherfacts/weatherRadarPic`)


// 闪电实况
export const reqLightingPic = () => request.get(`/weatherfacts/getLightingPic`)

// 雨量监测报警
export const reqRainStation = (data) => request.post(`/weatherfacts/rainfallDetectionAndAlarm`, data)

// 气温监测报警
export const reqTempStation = (data) => request.post(`/weatherfacts/temperatureDetectionAndEarlyWarning`, data)

// 单站查询

export const reqStationDetail = (wsId) => request.get(`/weatherfacts/warningDetails?wsId=${wsId}`)


// 雨量实况与预报
export const reqRainAndForecast = (user, pageNum, pageSize) => request.get(`/weatherfacts/actualRainfallAndForecast?user=${user}&pageNum=${pageNum}&pageSize=${pageSize}`)

// 1h雨量分布图
export const req1hRainPic = () => request.get(`/weatherfacts/rainfallForecast1hGis`)

// 各区县逐日平均雨量
export const reqDailyAverageRain = (webUser) => request.get(`/weatherfacts/dailyData?webUser=${webUser}`)